﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
      class Task:NPC
    {
        private string taskInfo;//任务

        public string TaskInfo 
        {
            get { return this.taskInfo; }
            set { this.taskInfo = value; }
        }


        public Task(string name, NPCtype type, string taskInfo) : base(name, type)
        {
            this.taskInfo = taskInfo;
        }

        public override void Speak()
        {
            Console.WriteLine("你能帮我抓羊吗？NPC：{0}，任务：{1}", this.Name, this.taskInfo);
        }
    }
}
